package edit;

import skyproc.MajorRecord;

public class HeaderHolder implements HolderInterface {
	
	public HeaderHolder() {
	}
	
	public int getChildCount() {
		return 3;
	}
	
	public Object getChild(Object parent, int index) {
		switch(index) {
		case 0:
			return new SignitureHolder(StaticRecordHolder.getRecord());
		case 1:
			return new FlagHolder(StaticRecordHolder.getRecord());
		case 2:
			return new EDIDHolder(StaticRecordHolder.getRecord());
		}
		
		return null;
	}

	@Override
	public String getDescription() {
		// TODO Auto-generated method stub
		return "Record Header";
	}

	@Override
	public Object getValueAt(int index) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isLeaf() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int getIndexOfChild(Object parent, Object child) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Object getHeldObject() {
		// TODO Auto-generated method stub
		return null;
	}
	

}
